package ke06.aufgabe4;

import org.xml.sax.Attributes;
import org.xml.sax.helpers.DefaultHandler;

public class PartyHandler extends DefaultHandler {

	static int elementCount = 0;
	static int attributeCount = 0;

	@Override
	public void startDocument() {
		System.out.println("Document starts.");
	}
	@Override
	public void endDocument() {
		System.out.println("Document ends.");
	}

	public void startElement(String namespaceURI, String localName,
			String qName, Attributes atts) {
		
		elementCount++;
		attributeCount += atts.getLength();
	}
}
